
<style type="text/css">

div.ds_dialog_title {background: {$config['formcolortop']}; border-bottom: 1px solid {$config['formcolortop']};}


#top_time li {display:inline-block;background-color:#fc8117;border-radius:2px;color:#fff;font-size:12px;width:20px;line-height:18px;text-align:center}
#top_time li.split {background: none; color: #fff; width: 8px;}
#top_time li.split_yomiday {width: 14px;}
#group_time {display: inline-block;}
#group_time ul {display: inline-block;}
#group_time li {display: inline-block; color: #fff;}
#group_time li {background-color:#ee201d;}
	.lv_newbottom2 {position: fixed; width: 100%; height: 52px; line-height: 52px; z-index: 97; background: #ededed; text-align: center; left: 0; bottom: 500; display: flex; display: -webkit-flex;}
{php $config['maxcountall']==1?$showrecord=0:'';}

{if ($config['groupprice2']=='0.00' && empty($showrecord)) || !empty($themyrecordid)}
	.lv_newbottom {position: fixed; width: 100%; height: 52px; line-height: 52px; z-index: 97; background: #ededed; text-align: center; left: 0; bottom: 0; display: flex; display: -webkit-flex;}
	.lv_newbottom a {flex: auto; -webkit-flex: auto;}
	{if ($config['isicon']!==3 ) }
	.lv_newbottom a:nth-child(1) {line-height: 20px; width: 5%;}
	{/if}
	.lv_newbottom a:nth-child(1) img {width: 20px; height: 22px; margin-top: 6px;}
		{if empty($themyrecordid)}
			{if $config['primeprice']!='0.00'}
				.lv_newbottom a:nth-child(2) {background: {$config['formcolorhead']}; color: {$config['formcolorlefttext']}; font-size: 19px;  {if $config['isshowprice']!=0}line-height: 15px; padding-top: 10px;{/if}}
			{else}
				.lv_newbottom a:nth-child(2) {background: {$config['formcolortop']}; color: {$config['formcolorrighttext']}; font-size: 19px; }			
			{/if}
		{else}
			.lv_newbottom a:nth-child(2) {background: {$config['formcolorhead']}; color: {$config['formcolorlefttext']}; font-size: 19px; line-height: 15px; padding-top: 10px;}
		{/if}
		.lv_newbottom a:nth-child(2) em {font-size: 12px;}
		.lv_newbottom a:nth-child(3) {background: {$config['formcolortop']}; color: {$config['formcolorrighttext']}; font-size: 19px; }
		
{else}
	.lv_newbottom {position: fixed; width: 100%; height: 52px; line-height: 52px; z-index: 97; background: #ededed; text-align: center; left: 0; bottom: 0; display: flex; display: -webkit-flex;}
	.lv_newbottom a {flex: auto; -webkit-flex: auto;}
	{if ($config['isicon']!==3 ) }
	.lv_newbottom a:nth-child(1) {line-height: 20px; width: 5%;}
	{/if}
	.lv_newbottom a:nth-child(1) img {width: 20px; height: 22px; margin-top: 6px;}
	{if $config['primeprice']!='0.00'}
	.lv_newbottom a:nth-child(2) {background: {$config['formcolorhead']}; color: {$config['formcolorlefttext']};}
	{/if}
	.lv_newbottom a:nth-child({php echo $bindex+1;}) {background: {$config['formcolorcenter']}; color: {$config['formcolorcentertext']};}
	.lv_newbottom a:nth-child({php echo $bindex+2;}) {background: {$config['formcolortop']}; color: {$config['formcolorrighttext']};}
	{if $config['isshowprice']==0}

		{if $config['primeprice']!='0.00'}
			{if !strstr($formtextleft,"<br>")}
				.lv_newbottom a:nth-child(2) {font-size: 16px; }
			{else}
				.lv_newbottom a:nth-child(2) {font-size: 15px; line-height: 20px; padding-top: 6px;}
			{/if}
		{/if}
		{if !strstr($formtextcenter,"<br>")}
			.lv_newbottom a:nth-child({php echo $bindex+1;}) {font-size: 16px; }
		{else}
			.lv_newbottom a:nth-child({php echo $bindex+1;}) {font-size: 15px; line-height: 20px; padding-top: 6px;}
		{/if}
		{if !strstr($formtextright,"<br>")}
			.lv_newbottom a:nth-child({php echo $bindex+2;}) {font-size: 16px; }
		{else}
			.lv_newbottom a:nth-child({php echo $bindex+2;}) {font-size: 15px; line-height: 20px; padding-top: 6px;}
		{/if}
	
	{elseif $config['isshowprice']==1}

		{if $config['primeprice'] != '0.00'}
			.lv_newbottom a:nth-child(2){font-size: 15px; line-height: 20px; padding-top: 6px;}
		{/if}

		{if !strstr($formtextcenter , "<br>")}
			.lv_newbottom a:nth-child({php echo $bindex+1;}) {font-size: 16px; }
		{else}
			.lv_newbottom a:nth-child({php echo $bindex+1;}) {font-size: 15px; line-height: 20px; padding-top: 6px;}
		{/if}

		{if !strstr($formtextright , "<br>") }
			.lv_newbottom a:nth-child({php echo $bindex+2;}) {font-size: 16px; }
		{else}
			.lv_newbottom a:nth-child({php echo $bindex+2;}) {font-size: 15px; line-height: 20px; padding-top: 6px;}
		{/if}

	{else}

		{if $config['primeprice']!='0.00'}
		.lv_newbottom a:nth-child(2) {font-size: 15px; line-height: 20px; padding-top: 6px;}
		{/if}
		.lv_newbottom a:nth-child({php echo $bindex+1;}),.lv_newbottom a:nth-child({php echo $bindex+2;}) {font-size: 15px; line-height: 20px; padding-top: 6px;}

	{/if}
	{if $config['primeprice']!='0.00'}
		.lv_newbottom a:nth-child(2) em {font-size: 12px;}
	{/if}
	.lv_newbottom a:nth-child({php echo $bindex+1;}) em,.lv_newbottom a:nth-child({php echo $bindex+2;}) em {font-size: 12px;}
{/if}
{if !empty($showrecord) || ($config['groupprice2']!='0.00' && $config['primeprice']!='0.00')}
	.levelgroup_check label {
	    display: block;
	    width: 100%;
	    height: 34px;
	    margin-bottom: 9px;
	}
{/if}

.levelgroup_head {
    background: {$config['formcolorhead']};
}
.levelgroup_top{
	background: {$config['formcolortop']};
}


.levelgroup_num {
    background: {$config['formcolortop']};
}
#group_time li {background-color:{$config['formcolortop']};}
.levelgroup_register {
    background: {$config['formcolortop']};
}

.levelgroup_button,.levelgroup_button_right {
    background: {$config['formcolortop']};
    padding: 0px 8px 10px;
}
.levelgroup_button1,.levelgroup_button2,.levelgroup_button3 {
    background: {$config['formcolortop']};
    padding: 0px 8px 1px;
}

.levelgroup_check {
    background: {$config['formcolorhead']};
}


.levelgroup_button a ,.levelgroup_button1 a ,.levelgroup_button2 a ,.levelgroup_button3 a ,.levelgroup_button_right a {display: block; background: url({$_G['URL']['APP_IMAGE']}icon_button2.png); background-size: 100% 100%; text-align: center; height: 48px; line-height: 48px; width: 100%; font-size: 20px; color: #565653; margin-bottom: 10px; font-weight: bold;}

.levelgroup_register ul li select, .levelgroup_register ul li input {
    color: #565653;
}

.info{
    height:40px;
    background-color:#fff;
    border:1px solid #fff;
    border-radius:8px;
    line-height:40px;
    margin:8px 8px;
    padding:0 8px;
    display:flex;
    display: -webkit-box;
    display: -webkit-flex;
    -webkit-blox-orient: horizontal;
    -webkit-flex-flow: row;
    flex-direction: row;
    font-size:16px;

}
.info label{
    width:28%;
}
.info input{
    width:58%;
    flex:1;
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    height:40px;
    outline: none;
    border:none;
    line-height:40px;
    padding:0 8px;
    font-size:16px;
}

</style>
{if !empty($config['buttontips'])}
{php $config['buttontips'] = str_replace("#totalsum",$totalsum,$config['buttontips']);}
{php $config['buttontips'] = str_replace("#groupsnum",$groupsnum,$config['buttontips']);}
{php $config['buttontips'] = str_replace("#scansum",$scansum,$config['buttontips']);}
<style type="text/css">
.fudfai_right2 {
	position: fixed;
	z-index: 50; 
	width: 100%; 
	height: 22px; 
	left:  0px; 
	bottom: 50px;
	background: #F5EBA9;
	text-align: center;
	color: #6B6A6A;
	/*filter:alpha(Opacity=80);-moz-opacity:0.5;opacity: 0.5;*/
	padding: 3px;
}
</style>
<div class="fudfai_right2" >{$config['buttontips']}
</div>
{/if}
 

<div id="bottommenu">
</div>

<div class="levelgroup_bg" onclick="hidden_info()" style="display: none;"></div>
<div class="levelgroup_main" style="display: none;">
	<div class="levelgroup_top content">
		<i style="line-height: 50px; font-size: 20px; color: #fff; padding-left: 5px;">
			{if empty($workername)}
			{$theme['jubf']}
			{else}
			<a href="tel://{$workermobile}" style="color: #fff"><img style="width:20px;height:20px;padding: 15px 0px 0px 12px;" src="{$_G['URL']['APP_IMAGE']}phone2.png">客服:{$workername}</a>
			{/if}
		</i>
		<div>
			<span>参与人数{$totalsum}</span><br />
			<em>浏览量{$scannum}人</em>
		</div>
	</div>

	<ul class="levelgroup_head contet" >
		{if $maxcountall==3 || count($detaillist)==2}
		<li>
		</li>
		{elseif $maxcountall==2 || count($detaillist)==1}
		<li style="width: 30%;">
		</li>
		{elseif $maxcountall==4 || count($detaillist)==3}
		<li style="width: 10%;">
		</li>
		{/if}
		<li>
			<img src="{php echo tomedia($showrecord['avatar']);}" alt=""><br />{$showrecord['username']}	<em style="content:'&#x62fc;主';position:absolute;right:0px;top:0px;width:20px;height:20px;line-height:20px;text-align:center;background-color:#F0373D;color:#fff;font-size:8px;border:2px solid #fff;-webkit-border-radius:21px;border-radius:21px;background-clip:padding-box">&#x62fc;主</em>
		</li>
		{if !empty($detaillist)}
        {loop $detaillist $cindexno $item}

		<li>
			<img src="{php echo tomedia($item['avatar']);}" alt=""><br />{$item['username']}
			{if $cindexno==0}<em style="content:'沙&#x53d1;';position:absolute;right:0px;top:0px;width:20px;height:20px;line-height:20px;text-align:center;background-color:#FF9910;color:#fff;font-size:8px;border:2px solid #fff;-webkit-border-radius:21px;border-radius:21px;background-clip:padding-box">沙&#x53d1;</em>
			{/if}
		</li>
        {/loop}
        {/if}
        {if !empty($num_arr)}
	         {loop $num_arr $cindexno $item}
				<li>
					<img src="{$_G['URL']['APP_IMAGE']}kongbai.png" alt=""><br />&nbsp;
					{if $cindexno==0 && empty($detaillist)}
						<em style="content:'沙&#x53d1;';position:absolute;right:0px;top:0px;width:20px;height:20px;line-height:20px;text-align:center;background-color:#FF9910;color:#fff;font-size:8px;border:2px solid #fff;-webkit-border-radius:21px;border-radius:21px;background-clip:padding-box">沙&#x53d1;</em>
					{/if}
				</li>
	        {/loop}
        {/if}
	</ul>

	<div id="menutips" class=" levelgroup_num content"  style="{if $config['isshowtips']==1}display: none;{/if}">

	</div>
	<div id="menutips2" class="levelgroup_check content" style="{if $config['isshowtips']==1}display: none;{/if}">
	</div> 
	{if empty($themyrecordid)}
	<div class="levelgroup_register content" style="{if $nowgroupneednum==0 && $config['tuanmode']==0}display: none;{/if}">
		<ul class="content">

			{if $system['jiage'] > 0 }
				<div class="info">
					<label style="width:30%;" {if mb_strlen($config['duojiagetips'])>12}style="font-size: 12px;"{/if}>{$config['duojiagetips']}：</label>
					<select id="jiagetype" name="jiagetype" class="sdiv" onchange="jiagetype_onchanged()">
						<option value="请选择">请选择{$config['duojiagetips']}</option>
						<option value="{$config['joinname']}" {if $config['joinname']==$member['option']}selected="selected"{/if}>{$config['joinname']}</option>
						<option value="{$config['joinname2']}" {if $config['joinname2']==$member['option']}selected="selected"{/if}>{$config['joinname2']}</option>
						{if $system['jiage'] > 1 }
						<option value="{$config['joinname3']}" {if $config['joinname3']==$member['option']}selected="selected"{/if}>{$config['joinname3']}</option>
						{/if}
					</select>
				</div>
			{else}
				<input  type="hidden" name="jiagetype" value="默认" id="jiagetype">
			{/if}
			{if $config['shopstype'] == 0 }
				{if !empty($config['shops'])}
				<div class="info">
					<label style="width:30%;" {if mb_strlen($config['shops'])>12}style="font-size: 12px;"{/if}>{$config['shops']}：</label>
					{if !empty($config['options'])}
					<select id="shoptitle" name="shoptitle" class="sdiv">
						<option value="">请选择{$config['shops']}</option>
						{loop $config['options'] $row}
						<option value="{$row}" {if $row==$member['option']}selected="selected"{/if}>{$row}</option>
						{/loop}
					</select>
					{/if}
				</div>
				{else}
				<input  type="hidden" name="shoptitle" value="默认" id="shoptitle">
				{/if}
			{/if}
			<div class="info">
				<label>{$config['nametext']}：</label>
				<input placeholder="请输入{$config['nametext']}" type="text" name="regname_order" value="{$_G['member']['username']}" id="regname_order">
			</div>
			<div class="info">
				<label>{$config['mobiletext']}：</label>
				<input placeholder="请输入{$config['mobiletext']}" type="tel" name="username_order" value="{$_G['member']['mobile']}" id="username_order">
				<input value="0" type="hidden" name="joininfoid" id="joininfoid">
			</div>

			{if $system['gift'] != 1 }
			<!-- <div  class="info" {if empty($config['address'])}style="display: none;"{/if}>
				<label {if mb_strlen($config['address'])>12}style="font-size: 12px;"{/if}>{$config['address']}:</label>
				<input placeholder="{$config['address']}必填" type="text" name="address_order" value="{$member['address']}" id="address_order">
			</div> -->

				{if $config['addresstype'] == 2 }
					{if !empty($config['address'])}
					<div class="info">
						<label style="width:30%;" {if mb_strlen($config['address'])>12}style="font-size: 12px;"{/if}>{$config['address']}：</label>
						{if !empty($config['addressoptions'])}
						<select id="address" name="address" class="sdiv">
							<option value="">请选择{$config['address']}</option>
							{loop $config['addressoptions'] $row}
							<option value="{$row}" {if $row==$member['address']}selected="selected"{/if}>{$row}</option>
							{/loop}
						</select>
						{/if}
					</div>
					{else}
					<input  type="hidden" name="address" value="默认" id="address">
					{/if}
				{elseif !empty($config['address']) && ($config['addresstype'] == 0 || $config['addresstype'] == 1)}
					<div  class="info" {if empty($config['address'])}style="display: none;"{/if}>
						<label {if mb_strlen($config['address'])>12}style="font-size: 12px;"{/if}>{$config['address']}:</label>
						<input placeholder="{$config['address']}必填" type="{php echo $config['addresstype']==1?'tel':'text';}" name="address" value="{$member['address']}" id="address">
					</div>
				{/if}

			{/if}
			{if $config['shopstype'] > 0 && $config['shopstype'] != 4 }
				<div  class="info" {if empty($config['shops'])}style="display: none;"{/if}>
					<label {if mb_strlen($config['shops'])>12}style="font-size: 12px;"{/if}>{$config['shops']}:</label>
					<input placeholder="{$config['shops']}必填" type="{php echo $config['shopstype']==2?'tel':'text';}" name="shoptitle" value="{$member['option']}" id="shoptitle">
				</div>
			{/if}
			{if $config['datetimetype'] > 0 }
				<div  class="info" {if empty($config['datetime'])}style="display: none;"{/if}>
					<label {if mb_strlen($config['datetime'])>12}style="font-size: 12px;"{/if}>{$config['datetime']}:</label>
					<input placeholder="{$config['datetime']}必填" type="{php echo $config['datetimetype']==2?'tel':'text';}" name="date_order" value="{$member['datetime']}" id="date_order">
				</div>
			{else}
				<div  class="info" {if empty($config['datetime'])}style="display: none;"{/if}>
					<label {if mb_strlen($config['datetime'])>12}style="font-size: 12px;"{/if}>{$config['datetime']}:</label>
					<input class="weui-input" style="font-size: 14px;" placeholder="{$config['datetime']}" type="text" onfocus="(this.type='date')" value="{$member['datetime']}" name="date_order" id="date_order"/>
				</div>
			{/if}
			<div style="padding-left: 20px; color: #ffffff; {if empty($config['xieyi'])} display: none;{/if}">
				<input placeholder="{$config['xieyi']}必填" type="checkbox" name="xieyi" id="xieyi_order">
				<label>{$config['xieyi']}</label>
			</div>
		</ul>
	</div>
	<div class="levelgroup_button content">
		<input type="hidden" id="tijiao" value="0">
		<a href="javascript:;" id="topay" ></a>
	</div>

	<div class="levelgroup_button_right content">
		<!--底部&#x6309;钮-->
		<input type="hidden" id="tijiao" value="0">
		<a id="yiman" href="javascript:;" onclick="hidden_info()" ></a>
		<a id="xintuan" href="javascript:;" id="level0" onclick="hidden_info()" style=""></a>
	</div>
	{else}
	<div class="levelgroup_button_right content">
		<input type="hidden" id="tijiao" value="0">
		{if $config['showpayresult']==1}
			{if $config['maxcountall']==1}
				<a href="javascript:letgo1();"  >您已成功抢购</a>
			{else}
				{if $nowgroupneednum==0 && $config['tuanmode']==0}
				<a href="javascript:;" onclick="hidden_info()" >{$config['lablesuccess']}</a>
				{else}
				<a href="javascript:letgo1();"  >{$config['lableleadergs']}</a>
				{/if}
			{/if}
		{else}
			<a href="{php echo $_G['siteroot'].createMobileUrl('mypay',array("themeid"=>$themeid));}"  >查看支付凭证</a>
		{/if}
		<a href="javascript:;" id="level0" onclick="hidden_info()" style="">返回活动页面</a>
	</div>	
	{/if}

</div>


{if $config['shopstype'] == 4 }
<style type="text/css">
.altBox { background:#fff; width:100%; max-width:750px; position:fixed; z-index:99; left:50%; transform:translateX(-50%); bottom:0;}
.altTit { background:{$config['formcolortop']} center no-repeat; line-height:52px; background-size:100% 100%; text-align:center; color:#fff; font-size:16px;}
.choseBox span { display:block; float:left; padding:0 15px; background:#f7f7f7; border-radius:32px; font-size:14px; color:#666666; margin:10px 10px 10px 0;}
.choseBox li { display: block;float: left;padding: 0 15px;border-radius: 32px;font-size: 14px;margin: 10px 10px 10px 0; background: {$config['formcolortop']};color: #fff;}
.choseBox { overflow:hidden; padding:0 4%;}
.checkBtn { font-style:normal; width:92%; margin:14px auto; text-align:center; color:#fff; font-size:16px; line-height:45px; border-radius:45px; display:block; background:{$config['formcolortop']};}
.choseBox span.on { background:{$config['formcolortop']}; color:#fff;}

</style>
<div class="altBox" style="display: none;">
<div class="altTit"> 请选择{$config['shops']}（<span class="numBer">{$guding}</span>/{php echo count($config['options'])+$guding;}）</div>
<div class="choseBox">
  {if $guding>0}
  {loop $config['gudingoptions'] $row}
    <li>{$row}(必选)</li>
  {/loop}
  {/if}
  {loop $config['options'] $row}
    <span>{$row}</span>
  {/loop}
</div>
<i class="checkBtn" onclick="NextBtn()"> 下一步 </i> </div>
{/if}

{if $theme['endtime'] >$_G['TIMESTAMP']}
<script type="text/javascript" src="{$_G['URL']['APP_JS']}time_mi.js"></script>
{/if}
<style>

.levelgroup_head li {position: relative;}
.levelgroup_register ul li select, .levelgroup_register ul li input {width: 100%; text-align: center; font-size: 18px;}

.levelgroup_bg {background: rgba(0,0,0,.6);}

.levelgroup_basebottom {display: flex; background: none; display: -webkit-flex;}
.levelgroup_basebottom a,.levelgroup_basebottom span {flex: auto; -webkit-flex: auto;}
.levelgroup_basebottom span {display: block; background: #000; color: #fff; font-size: 20px; border-radius: 10px 0 0 0;}
.levelgroup_basebottom a {display: block; background: #e93b3d; color: #ff0; font-size: 20px; border-radius: 0 10px 0 0; font-weight: bold;}

.levelgroup_register ul li input::-webkit-input-placeholder {color: #f8dc20;}

/*动画*/
@-webkit-keyframes zoomIn_new {
    0% {
        opacity: 0.5;
        -webkit-transform: scale3d(.4, .4, .4);
        transform: scale3d(.4, .4, .4)
    }
    50% {
        opacity: 1
    }
}

@keyframes zoomIn_new {
    0% {
        opacity: 0.5;
        -webkit-transform: scale3d(.4, .4, .4);
        transform: scale3d(.4, .4, .4)
    }
    50% {
        opacity: 1
    }
}
.zoomIn_new {
    -webkit-animation-name: zoomIn_new;
    animation-name: zoomIn_new
}
</style>
<script type="text/javascript">
	{if $system['jiage'] > 0 }
	function jiagetype_onchanged(){
        var jiagetype = $('#jiagetype option:selected').val();
		//$(".levelgroup_button").hide();
		var oStxt=document.getElementsByTagName("strong")[0];
		if (jiagetype=='{$config['joinname']}') {
			oStxt.innerHTML='{$formtextpay1}';
		}else if (jiagetype=='{$config['joinname2']}') {
			oStxt.innerHTML='{$formtextpay2}';
		}else if (jiagetype=='{$config['joinname3']}') {
			oStxt.innerHTML='{$formtextpay3}';
		}else{
			oStxt.innerHTML='立即支付';
		}
    }
    {/if}

{if $config['shopstype'] == 4 }
  function NextBtn() {
    var num = $('.altBox .choseBox .on').length+{$guding};
    if(num<{$config['shopsmin']}){
      tips('最少选择{$config['shopsmin']}项！');
    }else{
      	$(".altBox").hide();
		$(".levelgroup_bg").show();
		$(".levelgroup_main").slideDown();
    }
  }


  $('.altBox span').click(function(){
    if($(this).hasClass('on')){
      $(this).removeClass('on');
      var nun2 = $('.altBox .on').length+{$guding};
      $('.numBer').html(nun2);
    }else{
      var num = $('.altBox .on').length+1+{$guding};
      if(num>{$config['shopsmax']}){
        tips('最多只能选择{$config['shopsmax']}项！');
      }else{
        $(this).addClass('on');
        var nun = $('.altBox .on').length+{$guding};
        $('.numBer').html(nun);
      }
      
    }
  })
{/if}

function show_info(keyid){


	{if $system['gift']==1}
		var prizes_arr = [];
		prizes_arr[0] = {$config['gifttypeselect2']};
		prizes_arr[1] = {$config['gifttypeselect1']};


		var prizes = [];
		var prizes = $('.select_prize_id:checked');
		if(prizes.length < 1){
			ds.dialog({
			   title : '&#25805;&#20316;&#25552;&#31034;',
			   content : '&#35831;先选择{$config['address']}',
			   yesText : '&#30830;&#23450;',
		       timeout :2.5,
			});
			return false;
		}
		{if $config['typeid'] == 0}
		if(prizes_arr[0] > 0){
			if(prizes.length > prizes_arr[0]){
				ds.dialog({
					title : '&#25805;&#20316;&#25552;&#31034;',
					content : '&#27492;&#27963;&#21160;&#26368;&#22810;&#21482;&#33021;&#36873;&#25321;' + prizes_arr[0] + '&#39033;',
					yesText : '&#30830;&#23450;',
				    timeout :2.5,
				});
				return false;
			}else if(prizes.length < prizes_arr[1]){
				ds.dialog({
					title : '&#25805;&#20316;&#25552;&#31034;',
					content : '&#27492;&#27963;&#21160;&#26368;&#23569;&#38656;&#35201;&#36873;&#25321;' + prizes_arr[1] + '&#39033;',
					yesText : '&#30830;&#23450;',
				    timeout :2.5,
				});
				return false;
			}
		}
		{/if}
	{/if}


	$(".menu01").show();
	$(".menu02").hide();
		{if $config['isshowtips']==0}
		$(".levelgroup_check").show();
		{else}
		$(".levelgroup_check").hide();
		{/if}
	if(keyid == 3){
		$(".levelgroup_head").hide();
		$(".levelgroup_num").hide();
		$(".levelgroup_button_right").hide();
		$(".levelgroup_button").show();
		$("#check_type_1").attr('checked', '');
		$("#check_type_1").prop('checked', false);
		$("#check_type_2").attr('checked', '');
		$("#check_type_2").prop('checked', false);
		$("#check_type_4").attr('checked', '');
		$("#check_type_4").prop('checked', false);
		$("#check_type_3").attr('checked', 'checked');
		$("#check_type_3").prop('checked', true);
		$(".levelgroup_register").show();
	}else if(keyid == 1){
		$(".levelgroup_head").hide();
		$(".levelgroup_num").hide();
		$(".levelgroup_button_right").hide();
		$(".levelgroup_button").show();

		$("#check_type_2").attr('checked', '');
		$("#check_type_2").prop('checked', false);
		$("#check_type_3").attr('checked', '');
		$("#check_type_3").prop('checked', false);
		$("#check_type_4").attr('checked', '');
		$("#check_type_4").prop('checked', false);
		$("#check_type_1").attr('checked', 'checked');
		$("#check_type_1").prop('checked', true);
		$(".levelgroup_register").show();
	}else if(keyid == 4){
		$(".levelgroup_head").hide();
		$(".levelgroup_num").hide();
		$(".levelgroup_button_right").hide();
		$(".levelgroup_button").show();

		$("#check_type_2").attr('checked', '');
		$("#check_type_2").prop('checked', false);
		$("#check_type_3").attr('checked', '');
		$("#check_type_3").prop('checked', false);
		$("#check_type_1").attr('checked', '');
		$("#check_type_1").prop('checked', false);
		$("#check_type_4").attr('checked', 'checked');
		$("#check_type_4").prop('checked', true);
		$(".levelgroup_register").show();
	}else if(keyid == 2){
		$(".levelgroup_head").show();
		$(".levelgroup_num").show();
		$(".levelgroup_check").hide();
		{if empty($themyrecordid)}
			{if $nowgroupneednum==0 && $config['tuanmode']==0}
				$(".levelgroup_button_right").show();
				$(".levelgroup_button").hide();
				$(".levelgroup_register").hide();
			{else}
				$(".levelgroup_button_right").hide();
				$(".levelgroup_button").show();
			{/if}
		{else}
			$(".levelgroup_button_right").show();
			$(".levelgroup_button").hide();		
		{/if}
		$("#check_type_1").attr('checked', '');
		$("#check_type_1").prop('checked', false);
		$("#check_type_3").attr('checked', '');
		$("#check_type_3").prop('checked', false);
		$("#check_type_4").attr('checked', '');
		$("#check_type_4").prop('checked', false);
		$("#check_type_2").attr('checked', 'checked');
		$("#check_type_2").prop('checked', true);
	}else{
		$("#level0").hide();
	}
	{if $system['jiage'] > 0 }
	jiagetype_onchanged();
	{/if}	
  {if $config['shopstype'] == 4 && empty($themyrecordid) }
    // $('.altBox').animate({'bottom':'0'},100);
	$(".levelgroup_bg").show();
	$(".altBox").slideDown();
  {else}
	$(".levelgroup_bg").show();
	$(".levelgroup_main").slideDown();
	//$("body").addClass('body_style');
  {/if}
}
function swithmenu(){
	$(".menu02").show();
	$(".menu01").hide();
}
function swithmenu2(){
	$(".menu01").show();
	$(".menu02").hide();
}
function hidden_info(){
	$(".levelgroup_bg").hide();
	$(".altBox").hide();
	$(".levelgroup_main").slideUp();
	//$("body").removeClass('body_style');
}

</script>